<%@tag description="Reports Page Header Tag" pageEncoding="UTF-8"%>
<%@ include file="/taglibs.jsp" %>
<%@attribute name="title" required="true"%>
<div id="imageHeader">
    <table style="padding: 0 5px; margin: 0px; width: 100%;">
        <tr>
            <td id="pageHeader"><a href="/" /><img src="css/header.jpg" /></a></td>
            <td align="right">
                <span class="headerText"><c:if test="${!empty user}">
                    Welcome ${user.fullName}
                </c:if>
                <c:if test="${empty user}">
                    Welcome. Please Register.
                </c:if></span>
                <br/>
                <s:link class="logoff" href="/ShowAuction.action">Auctions</s:link>

                <c:if test="${!empty user}">
                    <c:if test="${user.admin}">
                        <s:link class="logoff" href="/User.action">Admin</s:link>
                    </c:if>
                    <s:link class="logoff" href="/Login.action?logoff">Logoff</s:link>
                </c:if>
                <c:if test="${empty user}">
                    <s:link class="logoff" href="/Register.action">Register</s:link>
                    <s:link class="logoff" href="/Login.action">Login</s:link>
                </c:if>
            </td>
        </tr>
    </table>
</div>
